<%-- 
    Document   : incluirFilmes
    Created on : 28/03/2013, 21:30:56
    Author     : raphael
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
           <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Cadastro de Filmes</title>
    </head>
    <body>
        <h1>Inserir Filmes</h1>
        <form name="form1" action="/CadastroFilmes/SltFilmes" method="POST">
            <table border="0">
                <tbody>
                    <tr>
                        <td>Nome:</td>
                        <td width="2">&nbsp;</td>
                        <td><input type="text" name="nome" value="" size="100" /></td>
                    </tr>
                    <tr>
                        <td>Genero:</td>
                        <td></td>   
                        <td><select name="Genero">
                                
                                    <c:forEach var="lista" items="${requestScope.itens}">
                                        <option value="${lista.id}">${lista.descricao}</option>
                                    </c:forEach>
                                
                            </select> </td>
                    </tr>
                    <tr>
                        <td>Duracao:</td>
                        <td width="2">&nbsp;</td>
                        <td><input type="text" name="duracao" value="" size="100" /></td>
                    </tr>
                    <tr>
                        <td>Ano:</td>
                        <td width="2">&nbsp;</td>
                        <td><input type="text" name="ano" value="" size="100" /></td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <input type="button" value="Cancelar" name="btnCancelar" onClick="window.location='/CadastroFilmes/SltFilmes?operacao=listar'" />
                            <input type="submit" value="Gravar" />
                            <input type="hidden" name="operacao" value="gravarinclusao" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </body>
</html>
